from web_real.models import *
from rest_framework import serializers, status

# 游戏分类
class GameClassSerializer(serializers.ModelSerializer):
    class Meta:
        model = GameClass
        fields = '__all__'

# 游戏排行
class GameSerializer(serializers.ModelSerializer):
    class Meta:
        model = Game
        fields = '__all__'

# 游戏详情
class GameDetailSerializer(serializers.ModelSerializer):
    class Meta:
        model = GameDetail
        fields = '__all__'

# 游戏厂商
class GameFactorySerializer(serializers.ModelSerializer):
    class Meta:
        model = GameFactory
        fields = '__all__'

# 游戏下载
class GameDownSerializer(serializers.ModelSerializer):
    class Meta:
        model = GameDown
        fields = '__all__'


